package com.fbinggun.fattribute.attribute.attack;

import com.fbinggun.fattribute.FAttributePlugin;
import com.fbinggun.fattribute.attribute.AAttack;
import com.fbinggun.fattribute.data.EntityData;
import org.bukkit.event.entity.EntityDamageByEntityEvent;

public class Attack extends AAttack {
    @Override
    public String getID() {
        return "Attack";
    }

    @Override
    public String getKey() {
        return FAttributePlugin.plugin.getConfigKey("Attack");
    }

    public double getDamage(EntityData data, EntityDamageByEntityEvent event){
     double value =   data.getValue(getKey());
     return Math.max(0,value);
    }

    @Override
    public int getCombat() {
        return 10;
    }
}
